using MicroMsg.Storage;
using System;
namespace MicroMsg.Plugin.QQInfo.Manager
{
	public class QFriendExtensions
	{
		public static int QFriendCompare(QFriend qfriend_0, QFriend qfriend_1)
		{
			if (qfriend_0 != null && qfriend_1 != null)
			{
				return QFriendExtensions.getWeight((int)qfriend_0.nWeixinStatus) - QFriendExtensions.getWeight((int)qfriend_1.nWeixinStatus);
			}
			return -1;
		}
		private static int getWeight(int nStatus)
		{
			if (nStatus == 1)
			{
				return 0;
			}
			if (nStatus == 2)
			{
				return 2;
			}
			return 1;
		}
	}
}
